package com.tmt.jpa.jpaservice;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.NoRepositoryBean;

import javax.persistence.EntityManager;
import java.io.Serializable;

/**
 * 仓库基础接口
 * Created by Stark on 2017/3/10.
 */
@NoRepositoryBean
public interface ITmtBaseRepo<T, ID extends Serializable> extends JpaRepository<T, ID>, JpaSpecificationExecutor<T> {

    EntityManager getEntityManager();
}
